package com.rattkin.model.vo
{	
	import mx.controls.DateField;
	import mx.formatters.DateFormatter;

	[RemoteClass(alias="EventVO")]
	public class EventVO
	{
        public var id:int;
        public var event_type_id:int;
        private var _datetime:Date;
        public var game_id:int;
        public var player_id:int;
        public var target_id:int;
        public var flag_id:int;
        
		public function get datetime():Date
		{
		    return _datetime;
		}
 
		public function set datetime(value:*):void
		{
		    var df:DateFormatter = new DateFormatter();
            df.formatString = "YYYY-MM-DD HH:NN:SS";
            var dateString:String = df.format(value as String);
            var d:Date = DateFormatter.parseDateString(dateString);
            _datetime = d;
		}        				
	}
}
